package com.cloudream.glsimple.core;

import android.opengl.GLU;

import java.nio.FloatBuffer;

/**
 * Created by Administrator on 2018/11/13 0013.
 */

public class Drawable2D {

    public static final int SIZEOF_FLOAT = 4;

    public static final int COORDS_PER_VERTEX = 2;

    public static final int TEXTURE_COORD_STRIDE = 2 * SIZEOF_FLOAT;

    public static final int VERTEXTURE_STRIDE = COORDS_PER_VERTEX * SIZEOF_FLOAT;

    private FloatBuffer mVBO ;

    private FloatBuffer mTextureCoordinateVBO;

    private int mVertexCount;


    public Drawable2D(){}

    public Drawable2D(float[] FULL_RECTANGLE_COORD,float[] FULL_TEXTURE_COORDINATE){
        mVBO = GLUtil.createFloatBuffer(FULL_RECTANGLE_COORD);
        mTextureCoordinateVBO = GLUtil.createFloatBuffer(FULL_TEXTURE_COORDINATE);
        mVertexCount = FULL_RECTANGLE_COORD.length / COORDS_PER_VERTEX;
    }



}
